Generating trigonometric tables